package com.flying.flow.participant;

import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;

import com.flying.framework.annotation.Service;

@Service(value="ParticipantService", desc="参与者")
public class ParticipantService {
	public Participant findById(String participant_id) {
		return new SimpleParticipant(participant_id);
	}
	public List<Participant> findById(String[] participant_ids) {
		return Arrays.stream(participant_ids).map(x -> findById(x)).collect(Collectors.toList());
	}
}
